package com.whq.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.whq.dao.ButlerTaskMapper;
import com.whq.entity.ButlerTask;
import com.whq.service.ButlerTaskService;

@Service(value = "tdButlerTaskService")
public class ButlerTaskServiceImpl implements ButlerTaskService {

    @Autowired
    private ButlerTaskMapper<ButlerTask>tdButlerTaskMapper;
    
    @Override
    public Integer insertSelective(ButlerTask tdButlerTask) throws Exception {
           return this.tdButlerTaskMapper.insertSelective(tdButlerTask);
        }

    @Override
    public Integer insertBatch(List<ButlerTask> tdButlerTask) throws Exception {
           return this.tdButlerTaskMapper.insertBatch(tdButlerTask) ;
        }

    @Override
    public Integer deleteByPrimaryKey(Object id) {
            return this.tdButlerTaskMapper.deleteByPrimaryKey(id);
    }

    public Integer deleteBatchByPrimaryKey(List<Object> ids) {
           return this.tdButlerTaskMapper.deleteBatchByPrimaryKey(ids);
    }

    @Override
    public Integer updateByPrimaryKeySelective(ButlerTask tdButlerTask) {
           return this.tdButlerTaskMapper.updateByPrimaryKeySelective(tdButlerTask);
    }

    @Override
    public ButlerTask findById(Object id) {
           return (ButlerTask) this.tdButlerTaskMapper.selectByPrimaryKey(id);
    }

    @Override
    public List<ButlerTask> selectByCondition(ButlerTask tdButlerTask) {
           return (List<ButlerTask>) this.tdButlerTaskMapper.selectByCondition(tdButlerTask);
    }

    @Override
    public Integer selectCountByCondition(ButlerTask tdButlerTask) {
           return  this.tdButlerTaskMapper.selectCountByCondition(tdButlerTask);
    }

}
